package com.chf.items;

import com.chf.entities.entity.ZombiePlusEntity;
import com.chf.mods.FirstMod;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

/**
 * 实物注册
 *
 * @author niooooo
 */
public class FirstEntityType {

    public static final DeferredRegister<EntityType<?>> ENTITIES =
            DeferredRegister.create(ForgeRegistries.ENTITY_TYPES, FirstMod.MOD_ID);

    public static final RegistryObject<EntityType<ZombiePlusEntity>> ZOMBIE_PLUS =
            ENTITIES.register("zombie_plus",
                    () -> EntityType.Builder.of(ZombiePlusEntity::new, MobCategory.MONSTER)
                            // 尺寸 (宽, 高)
                            .sized(0.6F, 1.95F)
                            // 客户端追踪距离
                            .clientTrackingRange(8)
                            .build("zombie_plus")
            );
}
